package com.sky.mapper;

import com.sky.entity.Setmeal;
import com.sky.entity.SetmealDish;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface SetmealDishMapper {

    //给setmeal_dish表中添加数据
    void addSetmealDish(List<SetmealDish> setmealDishes);

    List<Long> selectDishById(List<Long> ids);
    //根据id删除setmeal_dish里面的数据
    void deleteById(Long setmealId);
    //根据id查询
    List<SetmealDish> selectSetmealId(Long id);
    //修改setmeal_dish表
    void putSetmealDish(List<SetmealDish> setmealDishes);
}
